<!DOCTYPE html>
<html>
<head>
    <title>管理员列表</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input class="form-control" v-model="q.phone" @keyup.enter="query" placeholder="房东电话">
            </div>
            <div class="form-group col-sm-2">
                <input class="form-control" v-model="q.idCard" @keyup.enter="query" placeholder="身份证号">
            </div>
            <button class="layui-btn" id="searchSubmit" @click="query"><i class="layui-icon">&#xe615;</i>查 询</button>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
        <div id="page"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">用户名</div>
                <div class="col-sm-10">
                    <input :readonly="!canEdit" class="form-control" v-model="user.userName" placeholder="用户名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">身份证号</div>
                <div class="col-sm-10">
                    <input :readonly="!canEdit" type="text" class="form-control" v-model="user.idCard" placeholder="身份证号码"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">联系电话号</div>
                <div class="col-sm-10">
                    <input :readonly="!canEdit" class="form-control" v-model="user.phone" placeholder="手机号"/>
                </div>
            </div>
            <div class="form-group" style="margin-left: 30%;margin-top: 30px;">
                #if($shiro.hasPermission("sys:user:update"))
                <button v-if="canEdit" class="layui-btn" type="button" @click="saveOrUpdate">保存</button>
                #end
                <button class="layui-btn layui-btn-warm" type="button" @click="reload" style="margin-left: 30px">返回
                </button>
            </div>
        </form>
    </div>
</div>
<script src="${rc.contextPath}/statics/js/sys/userTenant.js?_${date.systemTime}"></script>
</body>
</html>